<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<h1 align="center" style="color: #1a54e8">部门信息</h1>
<table class="tab1" cellspacing="0" cellpadding="" style="border: 1px solid;">
    <tr>
        <th>部门id</th>
        <th>部门名</th>
        <th>部门经理</th>
        <th>部门描述</th>
        <th>操作</th>
    </tr>
    <c:forEach items="${allDep}" var="dep">
        <tr>
            <td>${dep.depid}</td>
            <td>${dep.depname}</td>
            <td>${dep.depmanager}</td>
            <td>${dep.description}</td>
            <td>
                <button class="edit" onclick="editDep(${dep.depid})">编辑</button>
                <button class="delete" onclick="deleteDep(${dep.depid})">删除</button>
            </td>
        </tr>
    </c:forEach>
</table>
<div style="margin-top: 15px;margin-bottom: 10px;color: #676a6c">
    显示第 1 到第 ${allDep.size()} 条记录，总共 ${allDep.size()} 条记录
</div>

